package com.lecture.java8.geekbang.demo02;

public class C implements A {
    String name;

    @Override
    public void setName(String name) {
        this.name = updateNmae(name);
    }

    @Override
    public String getName() {
        return name;
    }

    public static void main(String[] args) {
        A b = new B();
        b.setName("张三");
        A c = new C();
        c.setName("李四");
        System.out.println(b.getName());
        System.out.println(c.getName());
    }
}
